import {SET_ENV} from '../mutationTypes'
import Env from 'src/data/Env'

export default {
  state: {
    env: void 0
  },
  getters: {
    inWX (state) {
      return Env.WX === state.env
    }
  },
  mutations: {
    [SET_ENV] (state, env) {
      state.env = env
    }
  }
}
